<?php
/**
 * 意见反馈
 *
 * User: kaikaic
 * Date: 2018/10/26
 * Time: 0:09
 */

namespace app\exam\controller;

use app\exam\service\AccountService;
use app\exam\service\FeedbackService;
use controller\BasicAdmin;
use service\ConfigService;
use think\Db;

class Feed extends BasicAdmin {

    protected $table = "Feed";

    public function index() {
        $this->title = "个人定制";
        $query = array();
        $query['name'] = $this->request->get("name");
        $query['isnew'] = intval($this->request->get("isnew"));

        $db = Db::name($this->table);
        if ($query['name']) {
            $db->whereLike("name", "%{$query['name']}%");
        }
        if($query['isnew']){
            $db->where("isnew", $query['isnew']);
        }
        return parent::listRecord($db);
    }

    /**
     * 列表数据处理
     */

}

